package com.bafarat;

import java.util.Scanner;
import java.util.Random;

public class Run{

	public static void main(String[] args) {
		
		Random generator = new Random();
		String names[] = new String [7];
		Scanner input = new Scanner (System.in);
		
		for(int index = 0; index < names.length; index ++){
		
		System.out.println("Enter name " + (index + 1) + ": ");
        names[index] = input.nextLine();
		}
		System.out.println("The winner is " + names[generator.nextInt(7)] + "!");
	}
	}
	

